function getUserList (params) {
  return $axios({
    url: '/user/selectByPage',
    method: 'get',
    params
  })
}

// 修改---启用禁用接口
function enableOrDisableUser (params) {
  return $axios({
    url: '/user',
    method: 'put',
    data: { ...params }
  })
}

// 新增---添加员工
function addUser (params) {
  return $axios({
    url: '/user/addUser',
    method: 'post',
    data: { ...params },
    headers:{
      "Content-Type": "application/json"
    }
  })
}

// 修改---添加员工
function editUser (params) {
  return $axios({
    url: '/user/update',
    method: 'post',
    data: { ...params }
  })
}
function deleteUser(uid){
  return $axios({
    url: `/user/delete`,
    method: 'post',
    params: { uid }
  })
}
// 修改页面反查详情接口
function queryUserById (id) {
  return $axios({
    url: `/user/${id}`,
    method: 'get'
  })
}